package CacheLayer;

import java.util.HashMap;

import DomainLayer.AbstractEntity;

public abstract class AbstractCache extends HashMap{
	
	protected class BaseFrame{
		private AbstractEntity entity = null;
		public AbstractEntity getEntity() {
			return entity;
		}

		public void setEntity(AbstractEntity entity) {
			this.entity = entity;
		}
		
		public BaseFrame(AbstractEntity entity){
			setEntity(entity);
		}
	}
	
	public abstract AbstractEntity getEntityFromCache(Integer id);
	
	public abstract void addEntityToCache(AbstractEntity entity);
}
